package com.jcf.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcf.springboot.mapper.SysRoleMapper;
import com.jcf.springboot.service.SysRoleService;
import com.jcf.springboot.entity.sys.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author test
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2023-04-30 22:39:42
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
implements SysRoleService{

  @Autowired
  private SysRoleMapper sysRoleMapper;
  @Override
  public List<String> getRoleByUser(String userId) {

    return sysRoleMapper.selectIdByUser(userId);
  }
}
